<?php require_once 'common/adminHeader.php';?>
<div class="nav">
当前位置：<a href="<?php echo siteUrl('Manage/adminlist')?>">管理员列表</a>>><a href="<?php echo siteUrl('Manage/adminadd')?>">管理员添加</a>
</div>
<form method="POST" action="" enctype="multipart/form-data">
<?php echo $form_hint;?>
<table class="tableClass"  width="100%"  border="0" cellpadding="0" cellspacing="1">
  <tr>
   	<td width="150">用户名：</td>
    <td><input type="text" value="<?php echo $form_data->AdminName?>" name="AdminName"/></td>
  </tr> 
  <tr>
   	<td>真实姓名：</td>
    <td><input type="text" value="<?php echo $form_data->TrueName?>" name="TrueName"/> </td>
  </tr>
  <tr>
   	<td>密码：</td>
    <td><input type="password" value="<?php echo $form_data->Password?>" name="Password"/></td>
  </tr>
  <tr>
   	<td>权限：</td>
    <td>
    	<p>夏令营年级管理</p>
    	<?php 
    	if($form_data->camp['summer']):
    		foreach ($form_data->camp['summer'] as $key=>$value):?>
    				
    			<input type="checkbox" value="<?php echo $value['GradeId']?>" name="camp[]" <?php if(isset($form_data->AdminGrant->camp[$key])) echo "checked";?> ><?php echo $value['GradeName']?>
    	<?php endforeach;endif;?>
    	<p>冬令营年级管理</p>
    	<?php 
    	if($form_data->camp['winter']):
    		foreach ($form_data->camp['winter'] as $key=>$value):?>
    			<input type="checkbox" value="<?php echo $value['GradeId']?>" name="camp[]"  <?php if(isset($form_data->AdminGrant->camp[$key])) echo "checked";?>><?php echo $value['GradeName']?>
    	<?php endforeach;endif;?>
    	
    	<p>全日制年级管理</p>
    	<?php 
    	if($form_data->fullTime):
    		foreach ($form_data->fullTime as $key=>$value):?>
    			<input type="checkbox" value="<?php echo $value['GradeId']?>" name="fullTime[]" <?php if(isset($form_data->AdminGrant->fullTime[$key])) echo "checked";?>><?php echo $value['GradeName']?>
    	<?php endforeach;endif;?>
    	
    	<p>莲花年级管理</p>
    	<?php 
    	if($form_data->lotus):
    		foreach ($form_data->lotus as $key=>$value):?>
    			<input type="checkbox" value="<?php echo $value['GradeId']?>" name="lotus[]" <?php if(isset($form_data->AdminGrant->lotus[$key])) echo "checked";?>><?php echo $value['GradeName']?>
    	<?php endforeach;endif;?>
    	
    	<p>其他</p>
    	<input type="checkbox" value="1" name="teacher"  <?php if(isset($form_data->AdminGrant->teacher)) echo "checked";?>>教师简历
    	<input type="checkbox" value="1" name="finance"  <?php if(isset($form_data->AdminGrant->finance)) echo "checked";?>>财务系统
    	<input type="checkbox" value="1" name="manage" <?php if(isset($form_data->AdminGrant->manage)) echo "checked";?>>管理员管理系统
    </td>
  </tr>
  
  <tr>
   	<td>&nbsp;</td>
    <td><input type="submit" value="提交" name="submit"/></td>
  </tr>
</table>
</form>
